package com.huiqiao.lesson9.entity.dto;

import com.huiqiao.lesson9.entity.SysRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel("User")
public class User {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", example = "1001")
    private Long userId;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号（登录名）", example = "chenfeng")
    private String userName;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称", example = "陈峰")
    private String nickName;

    /**
     * 用户类型
     */
    @ApiModelProperty(value = "用户类型（00系统用户 01普通用户）", example = "00")
    private String userType;

    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱", example = "chenfeng@example.com")
    private String email;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", example = "13800001111")
    private String phonenumber;

    /**
     * 用户性别
     */
    @ApiModelProperty(value = "用户性别（0男 1女 2未知）", example = "0")
    private String sex;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像URL", example = "https://img.example.com/avatar.png")
    private String avatar;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码（仅注册时必填）", example = "Aa123456")
    private String password;
}
